How many rows and columns are present in the dataframe

34

import pandas as pd
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
import pandas as pd

data = {'Month': ['January','February','March','April','May','June','July','August','September','October','November','December'],
        'Days in Month': [31,28,31,30,31,30,31,31,30,31,30,31]
        }

df = pd.DataFrame(data, columns = ['Month', 'Days in Month'])

contain_values = df[df['Month'].str.contains('Ju')]
print (contain_values)
# Write your code for filling the NaN values in the 'language' column here
movies[movies["language"]=="English"]
#movies["language"]=movies["language"].astype("str")
#movies.apply(lambda x:"English" if x=="nan" else "")
df.loc[df.index[#], 'NAME']

Comments

Submit
0 Comments